package com.zkw.gradle.demo;

import java.io.IOException;
import java.util.Properties;

/**
 * Created by Administrator on 2016/4/11.
 */
public class ReadResourcesMain {
    public static void main(String[] args) {
        System.out.println("this is java... ...");
        System.out.println(System.getProperty("user.dir"));
        try {
            Properties properties=new Properties();
            properties.load(ReadResourcesMain.class.getResource("/test.properties").openStream());
            properties.getProperty("test");
            System.out.println(properties.getProperty("test"));
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
